g = (x ** 2 for x in range(11))
print(type(g))


def generator_01():
    for i in range(3):
        yield i ** 2


f = generator_01()
print(type(f))
print(next(f))
print(next(f))
print(next(f))
print(next(f))